{{left_sidebar_enabled,right_sidebar_enabled=False,True}}
{{extend 'layout.html'}}

<h1>Standard Message to Global Leader</h1>

<p>FAO {{=leader.leader}}</p>

{{=MARKMIN(message.message_text)}}

{{if leader.contact_method == 'email' and leader.email != None:}}
<p>This contact can be emailed at {{=leader.email}}.  However email is more persuasive if it is sent from an individual so please click the button below to generate an email which will be sent to you to forward on to the leader. </p>
<p><INPUT TYPE=BUTTON onclick="ajax('{{=URL('sendmsg',args=[source])}}','{{=rowid}}', 'target')" VALUE="Send Message"></p>
<div id="target"></div> 
{{elif leader.contact_method == 'website' and leader.website != None:}}
<p>This contact doesn't have an email address but can be contacted via the following website {{=MARKMIN(leader.website)}}.  Please copy the above message and submit to the link.</p>
{{else:}}
<p>Unfortunately we don't yet have contact details for this individual to get in touch and ask for their support.  However you can still generate an email which you can forward on by looking up some appropriate contact details yourself.</p>
<INPUT TYPE=BUTTON onclick="ajax('{{=URL('sendmsg',args=[source])}}','{{=rowid}}', 'target')" VALUE="Send Message"></p>
<div id="target"></div> 
{{pass}}


{{block right_sidebar}}
{{include 'sidebar.html'}}
{{end}}

